package reflection;

/**
 * @Description: null
 * @Project: testDemo
 * @Author: hjibo
 * @CreateDate: 2019-02-02 22:39
 * @ModificationHistory:
 */
public class Monkey implements DemoService{

    private String name;

    private Integer age;

    @Override
    public void say() {
        System.out.println(this.name+" 我想吃香蕉");
    }

    @Override
    public void coding() {
        System.out.println(this.name+" 我在写代码，如来老儿保佑，永无BUG");
    }

    public void cry(String name){
        System.out.println(name+" 哇哇大哭");
    }

    public Monkey() {
    }

    public Monkey(String name) {
        this.name = name;
    }

    public Monkey(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
